package first.c02;

public class Rental {

	private Movie _movie; // 影片
	private int _daysRented; // 租期

	public Rental(Movie movie, int daysRented) {
		_movie = movie;
		_daysRented = daysRented;
	}

	public int getDaysRented() {
		return _daysRented;
	}

	public Movie getMovie() {
		return _movie;
	}
	
	public double getCharge(){
		return _movie.getCharge(_daysRented);
	}
	
	public int getFrequentRenterPoints(){
		return getMovie().getFrequentRenterPoints(_daysRented);
	}

}
